/**
 * 
 */
package travibot.model.buildings;

import java.util.ArrayList;
import java.util.List;

import travibot.model.MilitaryBuilding;
import travibot.model.Position;
import travibot.model.Unit;

/**
 * @author Petr Macek
 * 
 */
public class MilitaryBuildingImpl extends AbstractBuilding implements MilitaryBuilding {

    private List<Unit> producedUnits = new ArrayList<Unit>();

    public MilitaryBuildingImpl(Position position) {

        super(position);

    }

    /*
     * (non-Javadoc)
     * 
     * @see travibot.engine.MilitaryBuilding#getProducedUnits()
     */
    public List<Unit> getProducedUnits() {

        return producedUnits;
    }

    public void addProducedUnit(Unit unit) {

        producedUnits.add(unit);
    }

}
